<?php

include("ComponentProperty.class.php");
include("ComponentPropertyValue.class.php");
class Dimension Extends ComponentProperty {

// singleton instance 
 private static $instance; 


private function __construct() {
    
}


  // getInstance method 
  public static function getInstance() { 

    if(!self::$instance) { 
      self::$instance = new self(); 
    } 

    return self::$instance; 

  }
  
  public function copy(){
   
   $clone=new Dimension();
   $clone->label=$this->label;
   //$clone->value=$this->value;
 //  $clone->valueURI=$this->valueURI;
   $clone->URI=$this->URI;
   $clone->attachmentLevel=$this->attachmentLevel;
   $clone->isIndirect=$this->isIndirect;
   return $clone;
  }

   
  public static function wrapDimention($URI,$label,$comment,$attachmentLevel,$isIndirect){
   
   $clone=new Dimension();
   $clone->label=$label;
  //  $clone->value=$value;
  // $clone->valueURI=$valueURI;
   $clone->URI=$URI;
   $clone->attachmentLevel=$attachmentLevel;
   $clone->isIndirect=$isIndirect;
   $clone->comment=$comment;
   return $clone;
  }
  
}


?>
